<template>
	<view :class="lang">
		<u-navbar :is-fixed="true" :title="biaozhilist.fname" back-icon-name="arrow-leftward">
			<view class="slot-wrap greenbg heigh150">
				<view class="u-navbar-centent-slot"><!-- <text>购卡中心</text> --></view>
			</view>
		</u-navbar>
		<view class="guideview">
			<view class="guideviewrow" v-for="(item,index) in biaozhilist.jiaoTongBiaoZhiList" :key="index" @click="contents(indenum,index)">
				<view class="guidelistviewimg">
					<image :src="item.img"></image>
				</view>
				<view class="guidelistviewtext">{{item.name}}</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	//接口
	import {
		jiaotongbiaozhilist_api		//交通标志接口
	} from '@/api/index';
	export default {
		data() {
			return {
				lang: this.$i18n.locale,
				biaozhilist:[],
				indenum:0,
			}
		},
		onLoad(options) {
			var that = this;
			var inde = options.ind;
			that.indenum = inde;
			console.log(inde);
			//that.inits(options.ind);
			that.https({
				url: jiaotongbiaozhilist_api,
				method: 'POST',
				header: {
					'content-type': 'application/json'
				},
				data: {},
				success: res => {
					
					var biaozhijson = res.biaozhi_list;
					console.log("res---",biaozhijson[inde]);
					that.biaozhilist = biaozhijson[inde];
					// that.kemu3videolist = res.kemu3;
				},
				fail: err => {
					console.log(err);
				}
			});
		},
		methods: {
			inits(ind){
				var that = this;
				console.log("jinru biaoz list")
					
			},
			contents(ind,conid){
				this.$u.route({
					url: '/pages/guidepost/guidepostcon?flid='+ind+'&conid='+conid,
				})
			}
		}
	}
</script>

<style>
	/* .u-navbar-content-title{
		left:80rpx !important;
		width: 364rpx !important;
	} */
.guideview{
	width: 750rpx;
	display: block;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	text-align: center;
	justify-content: center;
	
}
.guideviewrow{
	flex: 1;
	width: 50%;
	min-width: 50%;
	max-width: 50%;
	display: inline-block;
	height: 320rpx;
	border:1rpx solid #f4f4f4;
	/* margin-left:-mpx; */
	 margin: 0 0 -2rpx -1rpx;
}
.guidelistviewimg{
	width: 150rpx;
	height: auto;
	/* height: 150rpx; */
	margin: 50rpx auto 0 auto;
}
.guidelistviewimg image{
	width: 150rpx;
	height: 140rpx;
}
.guidelistviewtext{
	padding-top: 30rpx;
	height: 50rpx;
	line-height: 50rpx;
	text-align: center;
}

</style>
